package com.lh.web.dao.admin;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lh.common.entity.admin.OrderAfterSale;
import com.lh.common.entity.admin.OrderAfterSaleAdmin;
import com.lh.common.entity.admin.OrderAfterSaleDetails;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

@Mapper
public interface OrderAfterSaleMapper extends BaseMapper<OrderAfterSale> {

    List<OrderAfterSaleAdmin> queryAfterSaleOrderList(Map<String, Object> params);

    OrderAfterSaleAdmin queryAfterSaleOrder(String afterSaleId);

    int updateAfterSaleOrder(@Param("afterSaleId") String afterSaleId,@Param("status") String status);

    int updateOperAfterSaleOrder(@Param("afterSaleId") String afterSaleId, @Param("status") String status, @Param("addrId") Long addrId, @Param("refuseId") Long refuseId, @Param("agreeTime")Date agreeTime);

    OrderAfterSaleDetails queryAfterSalesDetails(String afterSaleId);
}
